package yxy.game.pm2.bean.db.po;

import yxy.apple.db.ResultObjectBuilder;

import java.util.Date;

/**
 * Author HYB
 * Date 2021/12/7
 * Time 10:13
 */
public class HeroPo {
    private String pCode;// 编码
    private String code;// 编码
    private int dataId;// 数据id
    private int level;// 等级
    private int star;// 星级
    private int stage;// 阶数
    private String equips;
    private String soulA;// 龙魂A
    private String soulB;// 龙魂B
    private String magicA;// 兵法A
    private String magicB;// 兵法B
    private String magicC;// 兵法C
    private boolean lock;// 锁定状态
    private String starUpCost;
    private long updateTime;//更新时间

    public static ResultObjectBuilder<HeroPo> builder = rs -> {
        HeroPo u = new HeroPo();
        u.setpCode(rs.getString("pCode"));
        u.setCode(rs.getString("code"));
        u.setDataId(rs.getInt("dataId"));
        u.setLevel(rs.getInt("level"));
        u.setStar(rs.getInt("star"));
        u.setStage(rs.getInt("stage"));
        u.setEquips(rs.getString("equips"));
        u.setSoulA(rs.getString("soulA"));
        u.setSoulB(rs.getString("soulB"));
        u.setMagicA(rs.getString("magicA"));
        u.setMagicB(rs.getString("magicB"));
        u.setMagicC(rs.getString("magicC"));
        u.setLock(rs.getBoolean("lock"));
        u.setStarUpCost(rs.getString("starUpCost"));
        u.setUpdateTime(rs.getLong("updateTime"));
        return u;
    };

    public String getpCode() {
        return pCode;
    }

    public void setpCode(String pCode) {
        this.pCode = pCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getDataId() {
        return dataId;
    }

    public void setDataId(int dataId) {
        this.dataId = dataId;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getStar() {
        return star;
    }

    public void setStar(int star) {
        this.star = star;
    }

    public int getStage() {
        return stage;
    }

    public void setStage(int stage) {
        this.stage = stage;
    }

    public String getEquips() {
        return equips;
    }

    public void setEquips(String equips) {
        this.equips = equips;
    }

    public String getSoulA() {
        return soulA;
    }

    public void setSoulA(String soulA) {
        this.soulA = soulA;
    }

    public String getSoulB() {
        return soulB;
    }

    public void setSoulB(String soulB) {
        this.soulB = soulB;
    }

    public String getMagicA() {
        return magicA;
    }

    public void setMagicA(String magicA) {
        this.magicA = magicA;
    }

    public String getMagicB() {
        return magicB;
    }

    public void setMagicB(String magicB) {
        this.magicB = magicB;
    }

    public String getMagicC() {
        return magicC;
    }

    public void setMagicC(String magicC) {
        this.magicC = magicC;
    }

    public boolean isLock() {
        return lock;
    }

    public void setLock(boolean lock) {
        this.lock = lock;
    }

    public String getStarUpCost() {
        return starUpCost;
    }

    public void setStarUpCost(String starUpCost) {
        this.starUpCost = starUpCost;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }
}
